import request from '@/utils/request'


//查询未发车退保证金选择订单分页列表
export function queryPageList(params) {
  return request({
    url: '/unpreparedCarDeposit/queryPageList',
    method: 'get',
    params
  })
}


//查询未发车退保证金选择订单分页列表
export function queryOrderPageList(params) {
  return request({
    url: '/unpreparedCarDeposit/queryOrderPageList',
    method: 'get',
    params
  })
}

//获取未发车退保证金详细信息
export function queryOrderInfo(id) {
  return request({
    url: `/unpreparedCarDeposit/queryOrderInfo/?orderId=${id}`,
    method: 'get',
  })
}

//unpreparedCarDeposit/commit
export function commit(data) {
  return request({
    url: `/unpreparedCarDeposit/commit`,
    method: 'post',
    data
  })
}

export function unpreparedCarDeposit(id) {
  return request({
    url: `/unpreparedCarDeposit/${id}`,
    method: 'get',
  })
}
